(Only custom methods shown here)
- Add
Adds an item to the property list.
Usage: Add(Name As String, _
[Content As String], _
[ReadOnly As Boolean], _
[ItemType As ItemTypes], _
[Index As Integer])
Arguments:
Name -
The string displayed in the left-hand
side of the property list.
Content -
Optional. The string displayed in the right-hand
side; the value, which can be changed
by the user. Defaults to nothing.
ReadOnly -
Optional. Specifies whether the user
is able to edit the item being added.
Defaults to False.
ItemType -
Optional. Specifies the filter
applied to the item being added.
Possible values are:
- ExPropStringValue
The default type. The item
can hold any string of up to
255 characters.
- ExPropNumericValue
The item will hold an integer value.
(i.e., no decimals or commas.) Cutting
operations are not allowed, but copying
is. Pasting operations are allowed if
the clipboard holds a number.
- ExPropBoolValue
The item will hold a True/False value.
A dropdown boolean list is automatically
provided.
- ExPropBrowseButton
The item has a text field which
cannot be edited, but a browse (...)
button is provided. A modal form or
dialog is generally shown upon
clicking the browse button (see the
Browse event).
- ExPropOleColor
The item holds a literal or system
color. A color well is displayed
next to the item's value showing
the current color, and a dropdown
color box is provided, from which
the user can choose from literal
or system colors.
- ExPropCustomValue
A dropdown list like the ExPropBoolValue
style, but you provide your own
custom values for the item in
response to the NeedData event.
- ExPropOwnerDraw
The item is completely owner-drawn,
both left and right columns. Given a
handle to a device context (hDC),
you can use GDI calls to paint
within the specified area.
- ExPropPropertyHeader
Not editable, and only the Name
parameter has meaning. This item
paints the string specified in the
Name parameter with the HeaderFont
property. There is no dividing line
down the center of this row.
Index -
Optional. Specifies the item's placement in
the list. If this parameter is omitted,
the item is added to the end of the list.
- Clear
Removes all items from the property list.
This method has no parameters.
- CommitPending
Saves the editing transaction currently
in progress (if any).
This method has no parameters.
- HideControls
Hides all controls used to edit list items.
This method has no parameters.
- Remove
Removes just one item from the property list.
Usage: Remove(Index As Integer)
Arguments:
Index -
The index of the item to remove
from the property list.
- SetOwnerDrawSink
Sets an object that implements
IPropOwnerDrawSink that the PropertyList
uses for owner-drawn items.
Usage: SetOwnerDrawSink( _
odsSinkObject As IPropOwnerDrawSink)
odsSinkObject can be any object that
implements the IPropOwnerDrawSink interface
in IPropOwnerDraw.tlb. To use owner-draw
in the property list control, add this type
library to your project through the References
dialog and put the following line in your
form:
Implements IPropOwnerDrawSink